﻿//$(function () {
//    $("#dialog-modal").dialog({
//        height: 140,
//        modal: true
//    });
//});

$(function () {
    $("#dialog-modal").dialog({
        width: "50%",
        height: 500,
        show: {
            effect: "shake",
            duration: 500
        },
        hide: {
            effect: "explode",
            duration: 1000
        },
        modal: true
    });
});

$(document).ready(function () {
    $("#jstree").jstree();
    $('#jstree').on("changed.jstree", function (e, data) {
        console.log(data.selected);
    });
    $('button').on('click', function () {
        $('#jstree').jstree(true).select_node('child_node_1');
    });
});